pip 模块安装

pip安装

1
apt install python3-pip

安装完pip就可以使用它来安装需要的模块。
也可以指定安装目录

1
pip install xgboost --target=/home/work/.local/lib/python2.7/site-packages/ -i https://mirrors.aliyun.com/pypi/simple/

1
https://mirrors.aliyun.com/pypi/simple/